﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace YXShop.Web.membercenter.circlereview
{
    public partial class leaveword_detail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (ChangeHope.WebPage.PageRequest.GetInt("id") > 0)
                {
                    BandInfo(ChangeHope.WebPage.PageRequest.GetInt("id"));
                }
            }
        }

        protected void BandInfo(int id)
        {
            YXShop.BLL.Accessories.Leaveword bll = new YXShop.BLL.Accessories.Leaveword();
            YXShop.Model.Accessories.Leaveword model = bll.GetModelByID(id);
            try
            {
                if (model != null)
                {
                    this.lblTitle.Text = model.Title;
                    this.lblContent.Text = model.Content;
                    this.lblAddDate.Text = model.AddDate.ToString();
                    this.lblReplyContent.Text= model.ReplyContent;
                }
            }
            catch { }
            finally
            {
                model = null;
            }
        }

    }
}
